<template>

		<view class="content">
				<view class="bom" v-for="(item) in items" :key="item">
					<view class="nft">
						<view class="git"><image :src="item.img" mode=""></image>
							</view>	
						<view class="og">
							<view class="" style="color: #000; font-size: 30rpx;">{{item.name}}</view>
								<view class="">{{item.city}}</view>
								<view class="">{{item.plan}}</view>
								<view class="">粉丝 {{item.fans}}</view>
								<view class="">{{item.data}}</view>
						</view>
						<button v-if="showfoucs" @click="showimg">关注</button>
						<button v-if="!showfoucs" @click="showimg">未关注</button>
					</view>
		
					</view>				
				</view>
</template>

<script>
	export default {
	
		data() {
			return {
			showfoucs:true,
				items:[
					{img:'../../images/2.png',name:"N2c总部",city:"广州",plan:"数字产品收藏家",fans:"6738",data:"2022-2-23 23:34"},
					{img:'../../images/5.png',name:"boxm",city:"广州",plan:"数字产品收藏家",fans:"6738",data:"2022-2-23 23:34"},
					{img:'../../images/6.png',name:"数字交易大师",city:"广州",plan:"数字产品收藏家",fans:"6738",data:"2022-2-23 23:34"},
					{img:'../../images/7.png',name:"N2c总部",city:"北京",plan:"数字产品收藏家",fans:"618",data:"2022-2-23 23:34"},
					]
			}
		},
		methods: {
		showimg(str){
			// 当点击showimg时showfoucs赋值给非showfoucs
			this.showfoucs=!this.showfoucs
		}
		}
	}
</script>

<style lang="scss">
.content{
	width: 750rpx;
	height: 100%;
	.bom{
		// width: 750rpx;
		// height: 300rpx;
		background-color: antiquewhite;
		border-radius: 10rpx;
		margin: 30rpx;
		.nft{
			display: flex;
			flex-direction: row;
			position: relative;
			button{
				width: 160rpx;
				height: 70rpx;
				line-height: 70rpx;
				border-radius: 50rpx;
				font-size: 32rpx;
				background-color: #8f8f8f;
				color: #fff;
				position: absolute;
				right: 40rpx;
				top:120rpx;
			}
			.git{
				display: flex;
				
				align-items: center;
				margin:30rpx 0 30rpx  30rpx ;
			text{
				margin: 20rpx 0;
			}
			}
		.og{
			font-size: 30rpx;
			padding: 40rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			button{
				display: flex;
				justify-content: center;
			}
			view{
				color: #8f8f8f;
				margin: 6rpx 0;
				font-size: 20rpx;
			}
		}
			image{
				width: 160rpx;
				height: 160rpx;
				border-radius: 90rpx;
			}
		}
	}
}
</style>
